// 封装收货地址
import request from "@/utils/request"

// 获取收货地址
export const _getAddress = () => {
  return request({
    url: '/member/address'
  })
}
// 添加收货地址
export const _addAddress = (data) => {
  return request({
    url: '/member/address',
    method: 'POST',
    data
  })
}
// 修改收货地址
export const _editAddress = (id,data) => {
  return request({
    url: `/member/address/${id}`,
    method: 'PUT',
    data
  })
}
// 删除收货地址
export const _delAddress = (id) => {
  return request({
    url: `/member/address/${id}`,
    method: 'DELETE'
  })
}